package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 a_wm_order
 * 
 * @author ruoyi
 * @date 2025-03-21
 */
public class AWmOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 订单标题 */
    @Excel(name = "订单标题")
    private String orderTitle;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 总重量（斤） */
    @Excel(name = "总重量", readConverterExp = "斤=")
    private BigDecimal totalWeight;

    /** 总数量（袋） */
    @Excel(name = "总数量", readConverterExp = "袋=")
    private Long totalBags;

    /** 订单截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadlineTime;

    /** 所在位置 */
    @Excel(name = "所在位置")
    private String fromLocation;

    /** 送达位置 */
    @Excel(name = "送达位置")
    private String toLocation;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String licensePlate;

    /** 是否结账（0: 未结, 1: 已结） */
    @Excel(name = "是否结账", readConverterExp = "0=:,未=结,,1=:,已=结")
    private Integer isPaid;

    /** 备注（语音文件路径） */
    @Excel(name = "备注", readConverterExp = "语=音文件路径")
    private String voiceNote;

    /** 送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 订单状态（0: 未完成, 1: 已完成） */
    @Excel(name = "订单状态", readConverterExp = "0=:,未=完成,,1=:,已=完成")
    private Integer status;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setOrderTitle(String orderTitle) 
    {
        this.orderTitle = orderTitle;
    }

    public String getOrderTitle() 
    {
        return orderTitle;
    }

    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }

    public void setTotalWeight(BigDecimal totalWeight) 
    {
        this.totalWeight = totalWeight;
    }

    public BigDecimal getTotalWeight() 
    {
        return totalWeight;
    }

    public void setTotalBags(Long totalBags) 
    {
        this.totalBags = totalBags;
    }

    public Long getTotalBags() 
    {
        return totalBags;
    }

    public void setDeadlineTime(Date deadlineTime) 
    {
        this.deadlineTime = deadlineTime;
    }

    public Date getDeadlineTime() 
    {
        return deadlineTime;
    }

    public void setFromLocation(String fromLocation) 
    {
        this.fromLocation = fromLocation;
    }

    public String getFromLocation() 
    {
        return fromLocation;
    }

    public void setToLocation(String toLocation) 
    {
        this.toLocation = toLocation;
    }

    public String getToLocation() 
    {
        return toLocation;
    }

    public void setLicensePlate(String licensePlate) 
    {
        this.licensePlate = licensePlate;
    }

    public String getLicensePlate() 
    {
        return licensePlate;
    }

    public void setIsPaid(Integer isPaid) 
    {
        this.isPaid = isPaid;
    }

    public Integer getIsPaid() 
    {
        return isPaid;
    }

    public void setVoiceNote(String voiceNote) 
    {
        this.voiceNote = voiceNote;
    }

    public String getVoiceNote() 
    {
        return voiceNote;
    }

    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderTitle", getOrderTitle())
            .append("orderAmount", getOrderAmount())
            .append("totalWeight", getTotalWeight())
            .append("totalBags", getTotalBags())
            .append("deadlineTime", getDeadlineTime())
            .append("fromLocation", getFromLocation())
            .append("toLocation", getToLocation())
            .append("licensePlate", getLicensePlate())
            .append("isPaid", getIsPaid())
            .append("voiceNote", getVoiceNote())
            .append("createTime", getCreateTime())
            .append("deliveryTime", getDeliveryTime())
            .append("status", getStatus())
            .toString();
    }
}
